package com.china08.yxyapi.entity.db.lessons.cloud;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 云课程 课时对应的习题
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_lessons_cloud_lesson_item_ques", uniqueConstraints = {
        @UniqueConstraint(columnNames = { "lesson_item_id", "ques_id" }) }, catalog = "yxy_lessons")
public class YxyLessonsCloudLessonItemQues extends BaseEntity {

    @Column(name = "lesson_item_id", nullable = false, columnDefinition = "varchar(32) comment '对应的课时id' ")
    private String lessonItemId;// 对应的课时id

    @Column(name = "ques_id", nullable = false, columnDefinition = "varchar(64) comment '试题id' ")
    private String quesId;// 试题id

    /** 排列序号 */
    @Column(nullable = false, columnDefinition = "INT(11) DEFAULT 100")
    private Integer orderNum = 20;

    public String getLessonItemId() {
        return lessonItemId;
    }

    public void setLessonItemId(String lessonItemId) {
        this.lessonItemId = lessonItemId;
    }

    public String getQuesId() {
        return quesId;
    }

    public void setQuesId(String quesId) {
        this.quesId = quesId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }
}
